package br.ufrgs.inf.cwsmart.impl;

import br.ufrgs.inf.cwsmart.CWSMartFramework;
import br.ufrgs.inf.cwsmart.exception.FrameworkException;
import br.ufrgs.inf.cwsmart.util.Logger;

/**
 *@author Rodrigo S Lumertz
 *
 */
public class TCC2ImplementationExample {

	private static CWSMartFramework framework;
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Logger.logger.setLogLevel(Logger.DEBUG2_LEVEL);
		
		new CWSMartFramework("br.ufrgs.inf.cwsmart.impl.ExtensionFactoryImpl");
		
		try {
					
			framework = CWSMartFramework.getInstance();
			
			framework.getMatcherInstance().joinCWSMart("samples\\Travel.bpel", "bpel", 
					"samples\\Travel.wsdl", "samples//Airline.wsdl", "samples//Employee.wsdl");
			
		} catch (FrameworkException e) {
			e.printStackTrace();
		}
	}

}
